package com.kaibes.module.email.sender;

import java.time.LocalDateTime;
import java.util.List;

import com.kaibes.core.base.annotation.Description;
import com.kaibes.web.thymeleaf.Variable;

import lombok.Data;

/**
CREATE TABLE `mail_template` (
  `key` varchar(64) NOT NULL,
  `title` varchar(128) NOT NULL,
  `email_content` text NOT NULL,
  `html` text NOT NULL,
  `remark` varchar(256) NOT NULL,
  `variables` text NOT NULL,
  `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
 */
@Description("邮件模板")
@Data
public class MailTemplate {
    
    private String key;
    private String title;
    private String emailContent;
    private String html;
    private String remark;
    private List<Variable> variables;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    
}
